package cn.rokhdelar.ams.management.domain.po;

import cn.rokhdelar.ams.base.BasePo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 部门实体对象，目前支持部门+团队结构，通过parentId进行关联
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(title = "部门实体")
public class SysDepartment extends BasePo {
    @Schema(title = "部门ID")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(title = "部门名称")
    private String name;

    @Schema(title = "部门职责")
    private String responsibility;

    @Schema(title = "部门地址")
    private String address;

    @Schema(title = "部门负责人")
    private String teamLeader;

    @Schema(title = "状态")
    private Boolean status = true;

    @Schema(title = "上级部门ID")
    private String parentId;
}